import request from "../config/request";

//登录
export function doLogin(params) {
  return request({
    url: 'common/login/doLogin',
    method: 'post',
    data: params
  })
}
//注册
export function register(params) {
  return request({
    url: 'common/login/register',
    method: 'post',
    data: params
  })
}
//退出登录
export function logout(params) {
  return request({
    url: 'common/login/logout',
    method: 'post',
    data: params
  })
}
//第三方授权预登录
export function preLogin(params) {
  return request({
    url: 'common/login/thirdAuth/preLogin/',
    method: 'post',
    data: params
  })
}
//第三方授权认证检查
export function checkAuth(params) {
  return request({
    url: 'common/login/thirdAuth/checkAuth',
    method: 'post',
    data: params
  })
}
// 修改密码
export function editPassword(params) {
  return request({
    url: 'common/login/modiPass',
    method: 'post',
    data: params
  })
}